package com.health.personal.controller;


import com.health.common.core.domain.R;
import com.health.personal.domain.vo.THospitalVo;
import com.health.personal.service.ITHospitalService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 医院信息表 前端控制器
 * </p>
 *
 * @author zzs
 * @since 2024-12-14
 */
@RestController
@RequestMapping("/hospital")
public class THospitalController {

    @Autowired
    private ITHospitalService service;


    /**
     * 医院下拉框
     * @return
     */
    @GetMapping("/list")
    public R<List<THospitalVo>> list(){
        List<THospitalVo> list = service.list();
        return R.ok(list);
    }




}
